﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using SCCN.Utility;
using System.Configuration;

/// <summary>
/// CreatePage 的摘要说明
/// </summary>
public class CreatePage
{
    public static Encoding encode = Encoding.GetEncoding(ConfigurationManager.AppSettings["Encoding"].ToString());

    public CreatePage()
    {
    }

    /// <summary>
    /// 读取Index模板内容
    /// </summary>
    /// <returns></returns>
    public static string ReaderTemplate(string templatePath)
    {
        string path = HttpContext.Current.Server.MapPath(templatePath);
        string str = CreateHTMLHelper.ReaderFileContent(path, encode);
        return str;
    }

     
}